package com.zua.mapper;
import com.zua.entity.Good;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface GoodMapper {
    List<Good> selectAll(@Param("pageNum")int pageNum,@Param("pageSize")int pageSize);
    Good selectById(int id);
    void deleteById(int id);
    void insertGood(Good good);
    void updateGood(Good good);
    List<Good> selectByEntry(String entry);
    List<Good> userShowNewGoods();
    List<Good> selectByCatelog(int catelogId);
    List<Good> selectByUserId(int userId);
    Integer selectNumById(int id);
}
